package com.cloud.demo.models.bus.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cloud.demo.models.bus.domian.BusOrder;
import com.cloud.demo.models.bus.domian.BusOrderDetailed;
import com.cloud.demo.models.bus.qo.OrderQo;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;

/**
 *
 */
public interface BusOrderService extends IService<BusOrder> {

    /**
     * 分页查询
     * @param qo
     * @return
     */
    PageInfo<BusOrderDetailed> pageList(OrderQo qo);

    /**
     * 生成订单号
     * @return
     */
    String orderNum();

    /**
     * 生成订单
     * @param BusOrderList
     * @param orderNum
     */
    void insetOrder(BusOrderDetailed BusOrderList, String orderNum);

    /**
     * 修改订单
     * @param busOrderList
     */
    void updateOrder(BusOrderDetailed busOrderList);
}
